﻿using MoneyLover.Constant;
using System.Collections;
using System.Windows.Controls;
using System.Windows.Input;

namespace HappyTravelling.Abs
{
    public partial class MoneyTextbox : UserControl
    {
        public MoneyTextbox()
        {
            InitializeComponent();
            //lpCurrency.ItemsSource = Currency.getCurrencyData();
        }

        public string Text
        {
            get
            {
                return tbAmount.Text;
            }
            set
            {
                tbAmount.Text = value;
            }
        }

        public object CurrencyItem
        {
            get
            {
                return lpCurrency.SelectedItem;
            }
        }

        public int CurrencyID
        {
            get
            {
                return lpCurrency.SelectedIndex;
            }
            set
            {
                lpCurrency.SelectedIndex = value;
            }
        }

        public IEnumerable SuggestSource
        {
            get
            {
                return tbAmount.SuggestionsSource;
            }
            set
            {
                tbAmount.SuggestionsSource = value;
            }
        }

        public InputScope InputScope
        {
            get
            {
                return tbAmount.InputScope;
            }
            set
            {
                tbAmount.InputScope = value;
            }
        }
    }
}